package com.cc.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cc.entity.User;
import com.cc.mapper.UserMapper;
import com.cc.service.UserService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 铁憨憨
 * @date 2021/2/5 10:37
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
    @Override
    public List<User> getUserList() {
        return this.baseMapper.selectList(null);
    }

    @Override
    public User getUserById(Integer id) {
        return this.baseMapper.selectById(id);
    }
}
